a01ed9b33b8fedb5deb6ef7c5880e1245b3266b9,hazelcast/src/main/java/com/hazelcast/monitor/impl/LocalMapStatsImpl.java,LocalMapStatsImpl,writeData,#ObjectDataOutput#,61

Before Change


        out.writeLong(maxPutLatency.get());
        out.writeLong(maxRemoveLatency.get());
        out.writeLong(heapCost);
        nearCacheStats.writeData(out);
    }

    public void readData(ObjectDataInput in) throws IOException {

After Change


        out.writeLong(maxPutLatency.get());
        out.writeLong(maxRemoveLatency.get());
        out.writeLong(heapCost);
        boolean hasNearCache = nearCacheStats != null;
        out.writeBoolean(hasNearCache);
        if(hasNearCache)
        {
            nearCacheStats.writeData(out);
        }
    }